Creates a Google user for a device and, if no request body is provided, generates a Google auth token on the EMM side.
Creates the Google account binding record for the device's EMM enrollment; when called without a request body, it also generates a fresh Google authentication token for that device on the Google EMM side.
About Device Google Account (EMM Enrollment) This endpoint is typically invoked as part of the device provisioning flow for Google EMM enrollment, establishing (or refreshing) the link between an Esper device and its Google-managed account.
Key Fields / Query Parameters
deviceId— UUID of the device to create the Google account binding forgoogle_device_id— Unique identifier for the Google devicegoogle_user_id— Unique identifier for the Google usergoogle_authentication_token— Authentication token for the Google account, generated automatically if the request body is omitted
- Mock serverhttps://api.esper.io/_mock/openapi/v2/devices/{deviceId}/google-accounts/
- https://develop-api.esper.cloud/apihttps://develop-api.esper.cloud/api/v2/devices/{deviceId}/google-accounts/
curl -i -X DELETE \
'https://api.esper.io/_mock/openapi/v2/devices/{deviceId}/google-accounts/'Response
{ "content": { "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "google_user_id": "string", "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940", "google_device_id": "string", "account_identifier": "string", "account_type": 0, "google_authentication_token": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } }